MvCameraControl.h
浏览该文件的文档.
1 
4 #ifndef _MV_CAMERA_CTRL_H_
5 #define _MV_CAMERA_CTRL_H_
6 
7 #include "MvErrorDefine.h"
8 #include "CameraParams.h"
9 
34  /*********************/
35  /* */
36  /*********************/
40  /************************************************************************/
41  /* 设置和获取设备参数的万能接口 */
42  /* General interface for getting and setting camera parameters */
43  /************************************************************************/
48  /************************************************************************/
49  /* GigEVision 设备独有的接口 */
50  /* GigEVision device specific interface */
51  /************************************************************************/
53 
54 
59  /*********************/
60  /* */
61  /*********************/
66  /*********************/
67  /* */
68  /*********************/
73  /************************************************************************/
74  /* 附加接口 */
75  /* Additional interface */
76  /************************************************************************/
80  /************************************************************************/
81  /* 设备升级 和 寄存器读写 和异常、事件回调 */
82  /* Device upgrade, register read and write and exception callback */
83  /************************************************************************/
88  /************************************************************************/
89  /* XML解析树的生成 */
90  /* XML parse tree generation */
91  /************************************************************************/
96  /************************************************************************/
97  /* XML解析树的生成 */
98  /* XML parse tree generation */
99  /************************************************************************/
101 
103 
104 
105 /************************************************************************/
106 /* 动态库导入导出定义 */
107 /* Import and export definition of the dynamic library */
108 /************************************************************************/
109 #ifndef MV_CAMCTRL_API
110 
111  #if (defined (_WIN32) || defined(WIN64))
112  #if defined(MV_CAMCTRL_EXPORTS)
113  #define MV_CAMCTRL_API __declspec(dllexport)
114  #else
115  #define MV_CAMCTRL_API __declspec(dllimport)
116  #endif
117  #else
118  #ifndef __stdcall
119  #define __stdcall
120  #endif
121 
122  #if defined(MV_CAMCTRL_EXPORTS)
123  #define MV_CAMCTRL_API __attribute__((visibility("default")))
124  #else
125  #define MV_CAMCTRL_API
126  #endif
127  #endif
128 
129 #endif
130 
131 #ifndef IN
132 #endif
134 
135 #ifndef OUT
136 #endif
138 
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142 
146 /********************************************************************/
164 
168 /********************************************************************/
179 
183 /********************************************************************/
209 MV_CAMCTRL_API int __stdcall MV_CC_EnumDevices(IN unsigned int nTLayerType, IN OUT MV_CC_DEVICE_INFO_LIST* pstDevList);
211 
215 /********************************************************************/
243 MV_CAMCTRL_API int __stdcall MV_CC_EnumDevicesEx(IN unsigned int nTLayerType, IN OUT MV_CC_DEVICE_INFO_LIST* pstDevList, IN const char* strManufacturerName);
245 
249 /********************************************************************/
277 MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceAccessible(IN MV_CC_DEVICE_INFO* pstDevInfo, IN unsigned int nAccessMode);
278 
279 /********************************************************************/
294 MV_CAMCTRL_API int __stdcall MV_CC_SetSDKLogPath(IN const char * strSDKLogPath);
296 
300 /********************************************************************/
315 MV_CAMCTRL_API int __stdcall MV_CC_CreateHandle(OUT void ** handle, IN const MV_CC_DEVICE_INFO* pstDevInfo);
317 
321 /********************************************************************/
336 MV_CAMCTRL_API int __stdcall MV_CC_CreateHandleWithoutLog(OUT void ** handle, IN const MV_CC_DEVICE_INFO* pstDevInfo);
338 
342 /********************************************************************/
353 MV_CAMCTRL_API int __stdcall MV_CC_DestroyHandle(IN void * handle);
355 
359 /********************************************************************/
390 MV_CAMCTRL_API int __stdcall MV_CC_OpenDevice(IN void* handle, IN unsigned int nAccessMode, IN unsigned short nSwitchoverKey);
391 
392 
394 
395 
399 /********************************************************************/
412 MV_CAMCTRL_API int __stdcall MV_CC_CloseDevice(IN void* handle);
414 
418 /********************************************************************/
429 MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceConnected(IN void* handle);
431 
435 /********************************************************************/
462  void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pstFrameInfo, void* pUser),
463  void* pUser);
465 
469 /********************************************************************/
496  void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pstFrameInfo, void* pUser),
497  void* pUser);
499 
503 /********************************************************************/
530  void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO_EX* pstFrameInfo, void* pUser),
531  void* pUser);
533 
537 /********************************************************************/
550 MV_CAMCTRL_API int __stdcall MV_CC_StartGrabbing(IN void* handle);
552 
556 /********************************************************************/
568 MV_CAMCTRL_API int __stdcall MV_CC_StopGrabbing(IN void* handle);
570 
574 /********************************************************************/
601 MV_CAMCTRL_API int __stdcall MV_CC_GetImageForRGB(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX* pstFrameInfo, int nMsec);
603 
607 /********************************************************************/
636 MV_CAMCTRL_API int __stdcall MV_CC_GetImageForBGR(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX* pstFrameInfo, int nMsec);
638 
642 /********************************************************************/
669 MV_CAMCTRL_API int __stdcall MV_CC_GetImageBuffer(IN void* handle, OUT MV_FRAME_OUT* pstFrame, IN unsigned int nMsec);
671 
675 /********************************************************************/
696 MV_CAMCTRL_API int __stdcall MV_CC_FreeImageBuffer(IN void* handle, IN MV_FRAME_OUT* pstFrame);
698 
702 /********************************************************************/
727 MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrameTimeout(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX* pstFrameInfo, unsigned int nMsec);
729 
730 
734 
735 /********************************************************************/
748 MV_CAMCTRL_API int __stdcall MV_CC_Display(IN void* handle, void* hWnd);
750 
751 
755 /********************************************************************/
772 MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrame(IN void* handle, IN MV_DISPLAY_FRAME_INFO* pstDisplayInfo);
774 
778 /********************************************************************/
796 MV_CAMCTRL_API int __stdcall MV_CC_SetImageNodeNum(IN void* handle, unsigned int nNum);
798 
802 /********************************************************************/
817 MV_CAMCTRL_API int __stdcall MV_CC_GetImageInfo(IN void* handle, IN OUT MV_IMAGE_BASIC_INFO* pstInfo);
819 
820 
824 /********************************************************************/
841 MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceInfo(IN void * handle, IN OUT MV_CC_DEVICE_INFO* pstDevInfo);
843 
847 /********************************************************************/
866 MV_CAMCTRL_API int __stdcall MV_CC_GetAllMatchInfo(IN void* handle, IN OUT MV_ALL_MATCH_INFO* pstInfo);
868 
872 /********************************************************************/
890 MV_CAMCTRL_API int __stdcall MV_CC_GetIntValue(IN void* handle,IN const char* strKey,OUT MVCC_INTVALUE *pIntValue);
892 
893 
897 /********************************************************************/
914 MV_CAMCTRL_API int __stdcall MV_CC_GetIntValueEx(IN void* handle,IN const char* strKey,OUT MVCC_INTVALUE_EX *pstIntValue);
916 
920 /********************************************************************/
937 MV_CAMCTRL_API int __stdcall MV_CC_SetIntValue(IN void* handle,IN const char* strKey,IN unsigned int nValue);
939 
940 
944 /********************************************************************/
961 MV_CAMCTRL_API int __stdcall MV_CC_SetIntValueEx(IN void* handle,IN const char* strKey,IN int64_t nValue);
963 
967 /********************************************************************/
984 MV_CAMCTRL_API int __stdcall MV_CC_GetEnumValue(IN void* handle,IN const char* strKey,OUT MVCC_ENUMVALUE *pstEnumValue);
986 
990 /********************************************************************/
1007 MV_CAMCTRL_API int __stdcall MV_CC_SetEnumValue(IN void* handle,IN const char* strKey,IN unsigned int nValue);
1009 
1013 /********************************************************************/
1030 MV_CAMCTRL_API int __stdcall MV_CC_SetEnumValueByString(IN void* handle,IN const char* strKey,IN const char* strValue);
1032 
1036 /********************************************************************/
1053 MV_CAMCTRL_API int __stdcall MV_CC_GetFloatValue(IN void* handle,IN const char* strKey,OUT MVCC_FLOATVALUE *pstFloatValue);
1055 
1059 /********************************************************************/
1076 MV_CAMCTRL_API int __stdcall MV_CC_SetFloatValue(IN void* handle,IN const char* strKey,IN float fValue);
1078 
1082 /********************************************************************/
1099 MV_CAMCTRL_API int __stdcall MV_CC_GetBoolValue(IN void* handle,IN const char* strKey,OUT bool *pbValue);
1101 
1105 /********************************************************************/
1122 MV_CAMCTRL_API int __stdcall MV_CC_SetBoolValue(IN void* handle,IN const char* strKey,IN bool bValue);
1124 
1128 /********************************************************************/
1145 MV_CAMCTRL_API int __stdcall MV_CC_GetStringValue(IN void* handle,IN const char* strKey,OUT MVCC_STRINGVALUE *pstStringValue);
1147 
1151 /********************************************************************/
1168 MV_CAMCTRL_API int __stdcall MV_CC_SetStringValue(IN void* handle,IN const char* strKey,IN const char * strValue);
1170 
1174 /********************************************************************/
1189 MV_CAMCTRL_API int __stdcall MV_CC_SetCommandValue(IN void* handle,IN const char* strKey);
1191 
1195 /********************************************************************/
1206 MV_CAMCTRL_API int __stdcall MV_CC_InvalidateNodes(IN void* handle);
1208 
1209 
1210 
1211 
1212 
1213 
1214 
1215 
1216 
1217 
1218 
1219 
1220 
1221 
1222 
1223 
1224 /************************************************************************/
1225 /* 相机参数获取和设置,此模块的所有接口,将逐步废弃,建议用上面的万能接口代替 */
1226 /* Get and set camara parameters, all interfaces of this module will be replaced by general interface*/
1227 /************************************************************************/
1228 
1232 /********************************************************************/
1259 MV_CAMCTRL_API int __stdcall MV_CC_GetWidth(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1260 
1261 /********************************************************************/
1275 MV_CAMCTRL_API int __stdcall MV_CC_SetWidth(IN void* handle, IN const unsigned int nValue);
1276 
1277 /********************************************************************/
1292 MV_CAMCTRL_API int __stdcall MV_CC_GetHeight(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1293 
1294 /********************************************************************/
1308 MV_CAMCTRL_API int __stdcall MV_CC_SetHeight(IN void* handle, IN const unsigned int nValue);
1309 
1310 /********************************************************************/
1325 MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetX(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1326 
1327 /********************************************************************/
1341 MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void* handle, IN const unsigned int nValue);
1342 
1343 /********************************************************************/
1358 MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetY(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1359 
1360 /********************************************************************/
1374 MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetY(IN void* handle, IN const unsigned int nValue);
1375 
1376 /********************************************************************/
1391 MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeLower(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1392 
1393 /********************************************************************/
1407 MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeLower(IN void* handle, IN const unsigned int nValue);
1408 
1409 /********************************************************************/
1424 MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeUpper(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1425 
1426 /********************************************************************/
1440 MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeUpper(IN void* handle, IN const unsigned int nValue);
1441 
1442 /********************************************************************/
1457 MV_CAMCTRL_API int __stdcall MV_CC_GetBrightness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1458 
1459 /********************************************************************/
1474 MV_CAMCTRL_API int __stdcall MV_CC_SetBrightness(IN void* handle, IN const unsigned int nValue);
1475 
1476 /********************************************************************/
1502 MV_CAMCTRL_API int __stdcall MV_CC_GetFrameRate(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
1503 
1504 /********************************************************************/
1518 MV_CAMCTRL_API int __stdcall MV_CC_SetFrameRate(IN void* handle, IN const float fValue);
1519 
1520 /********************************************************************/
1547 MV_CAMCTRL_API int __stdcall MV_CC_GetGain(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
1548 
1549 /********************************************************************/
1564 MV_CAMCTRL_API int __stdcall MV_CC_SetGain(IN void* handle, IN const float fValue);
1565 
1566 /********************************************************************/
1586 MV_CAMCTRL_API int __stdcall MV_CC_GetExposureTime(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
1587 
1588 /********************************************************************/
1603 MV_CAMCTRL_API int __stdcall MV_CC_SetExposureTime(IN void* handle, IN const float fValue);
1604 
1605 /********************************************************************/
1624 MV_CAMCTRL_API int __stdcall MV_CC_GetPixelFormat(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
1625 
1626 /********************************************************************/
1641 MV_CAMCTRL_API int __stdcall MV_CC_SetPixelFormat(IN void* handle, IN const unsigned int nValue);
1642 
1643 /********************************************************************/
1658 MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
1659 
1660 /********************************************************************/
1675 MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionMode(IN void* handle, IN const unsigned int nValue);
1676 
1677 /********************************************************************/
1692 MV_CAMCTRL_API int __stdcall MV_CC_GetGainMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
1693 
1694 /********************************************************************/
1709 MV_CAMCTRL_API int __stdcall MV_CC_SetGainMode(IN void* handle, IN const unsigned int nValue);
1710 
1711 /********************************************************************/
1726 MV_CAMCTRL_API int __stdcall MV_CC_GetExposureAutoMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
1727 
1728 /********************************************************************/
1743 MV_CAMCTRL_API int __stdcall MV_CC_SetExposureAutoMode(IN void* handle, IN const unsigned int nValue);
1744 
1745 /********************************************************************/
1760 MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerMode(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
1761 
1762 /********************************************************************/
1777 MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerMode(IN void* handle, IN const unsigned int nValue);
1778 
1779 /********************************************************************/
1794 MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerDelay(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
1795 
1796 /********************************************************************/
1810 MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerDelay(IN void* handle, IN const float fValue);
1811 
1812 /********************************************************************/
1827 MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerSource(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
1828 
1829 /********************************************************************/
1843 MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerSource(IN void* handle, IN const unsigned int nValue);
1844 
1845 /********************************************************************/
1859 
1860 /********************************************************************/
1875 MV_CAMCTRL_API int __stdcall MV_CC_GetGammaSelector(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
1876 
1877 /********************************************************************/
1892 MV_CAMCTRL_API int __stdcall MV_CC_SetGammaSelector(IN void* handle, IN const unsigned int nValue);
1893 
1894 /********************************************************************/
1909 MV_CAMCTRL_API int __stdcall MV_CC_GetGamma(IN void* handle, IN OUT MVCC_FLOATVALUE* pstValue);
1910 
1911 /********************************************************************/
1925 MV_CAMCTRL_API int __stdcall MV_CC_SetGamma(IN void* handle, IN const float fValue);
1926 
1927 /********************************************************************/
1942 MV_CAMCTRL_API int __stdcall MV_CC_GetSharpness(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1943 
1944 /********************************************************************/
1958 MV_CAMCTRL_API int __stdcall MV_CC_SetSharpness(IN void* handle, IN const unsigned int nValue);
1959 
1960 /********************************************************************/
1975 MV_CAMCTRL_API int __stdcall MV_CC_GetHue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
1976 
1977 /********************************************************************/
1991 MV_CAMCTRL_API int __stdcall MV_CC_SetHue(IN void* handle, IN const unsigned int nValue);
1992 
1993 /********************************************************************/
2008 MV_CAMCTRL_API int __stdcall MV_CC_GetSaturation(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2009 
2010 /********************************************************************/
2025 MV_CAMCTRL_API int __stdcall MV_CC_SetSaturation(IN void* handle, IN const unsigned int nValue);
2026 
2027 /********************************************************************/
2043 MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceWhiteAuto(IN void* handle, IN OUT MVCC_ENUMVALUE* pstValue);
2044 
2045 /********************************************************************/
2059 MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceWhiteAuto(IN void* handle, IN const unsigned int nValue);
2060 
2061 /********************************************************************/
2076 MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioRed(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2077 
2078 /********************************************************************/
2092 MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioRed(IN void* handle, IN const unsigned int nValue);
2093 
2094 /********************************************************************/
2109 MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioGreen(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2110 
2111 /********************************************************************/
2125 MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioGreen(IN void* handle, IN const unsigned int nValue);
2126 
2127 /********************************************************************/
2142 MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioBlue(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2143 
2144 /********************************************************************/
2158 MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioBlue(IN void* handle, IN const unsigned int nValue);
2159 
2160 /********************************************************************/
2175 MV_CAMCTRL_API int __stdcall MV_CC_GetFrameSpecInfoAbility(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2176 
2177 /********************************************************************/
2191 MV_CAMCTRL_API int __stdcall MV_CC_SetFrameSpecInfoAbility(IN void* handle, IN const unsigned int nValue);
2192 
2193 /********************************************************************/
2207 MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceUserID(IN void* handle, IN OUT MVCC_STRINGVALUE* pstValue);
2208 
2209 /********************************************************************/
2223 MV_CAMCTRL_API int __stdcall MV_CC_SetDeviceUserID(IN void* handle, IN const char* chValue);
2224 
2225 /********************************************************************/
2240 MV_CAMCTRL_API int __stdcall MV_CC_GetBurstFrameCount(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2241 
2242 /********************************************************************/
2256 MV_CAMCTRL_API int __stdcall MV_CC_SetBurstFrameCount(IN void* handle, IN const unsigned int nValue);
2257 
2258 /********************************************************************/
2273 MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionLineRate(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2274 
2275 /********************************************************************/
2289 MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionLineRate(IN void* handle, IN const unsigned int nValue);
2290 
2291 /********************************************************************/
2306 MV_CAMCTRL_API int __stdcall MV_CC_GetHeartBeatTimeout(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2307 
2308 /********************************************************************/
2322 MV_CAMCTRL_API int __stdcall MV_CC_SetHeartBeatTimeout(IN void* handle, IN const unsigned int nValue);
2324 
2325 
2326 
2327 
2328 
2329 
2330 
2331 
2332 /************************************************************************/
2333 /* 设备升级 和 寄存器读写 和异常、事件回调 */
2334 /* Device upgrade, register read and write and exception callback */
2335 /************************************************************************/
2336 
2340 /********************************************************************/
2356 MV_CAMCTRL_API int __stdcall MV_CC_LocalUpgrade(IN void* handle, const void *strFilePathName);
2358 
2362 /********************************************************************/
2375 MV_CAMCTRL_API int __stdcall MV_CC_GetUpgradeProcess(IN void* handle, unsigned int* pnProcess);
2377 
2381 /********************************************************************/
2400 MV_CAMCTRL_API int __stdcall MV_CC_ReadMemory(IN void* handle , void *pBuffer, int64_t nAddress, int64_t nLength);
2402 
2406 /********************************************************************/
2425 MV_CAMCTRL_API int __stdcall MV_CC_WriteMemory(IN void* handle , const void *pBuffer, int64_t nAddress, int64_t nLength);
2427 
2428 
2429 
2433 /********************************************************************/
2454  void(__stdcall* cbException)(unsigned int nMsgType, void* pUser), void* pUser);
2456 
2460 /********************************************************************/
2479 MV_CAMCTRL_API int __stdcall MV_CC_RegisterAllEventCallBack(void* handle, void(__stdcall* cbEvent)(MV_EVENT_OUT_INFO * pEventInfo, void* pUser), void* pUser);
2481 
2485 /********************************************************************/
2506 MV_CAMCTRL_API int __stdcall MV_CC_RegisterEventCallBackEx(void* handle, const char* strEventName,
2507  void(__stdcall* cbEvent)(MV_EVENT_OUT_INFO * pEventInfo, void* pUser), void* pUser);
2509 
2510 
2511 /************************************************************************/
2512 /* GigEVision 设备独有的接口 */
2513 /* GigEVision device specific interface */
2514 /************************************************************************/
2515 
2519 /********************************************************************/
2540 MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIpEx(IN void* handle, unsigned int nIP, unsigned int nSubNetMask, unsigned int nDefaultGateWay);
2541 
2542 /********************************************************************/
2562 MV_CAMCTRL_API int __stdcall MV_GIGE_SetIpConfig(IN void* handle, unsigned int nType);
2563 
2564 /********************************************************************/
2583 MV_CAMCTRL_API int __stdcall MV_GIGE_SetNetTransMode(IN void* handle, unsigned int nType);
2584 
2585 /********************************************************************/
2600 MV_CAMCTRL_API int __stdcall MV_GIGE_GetNetTransInfo(IN void* handle, MV_NETTRANS_INFO* pstInfo);
2601 
2602 /********************************************************************/
2618 MV_CAMCTRL_API int __stdcall MV_GIGE_SetGvcpTimeout(void* handle, unsigned int nMillisec);
2619 
2620 /********************************************************************/
2636 
2637 
2638 /********************************************************************/
2658 #ifndef __cplusplus
2659 MV_CAMCTRL_API int __stdcall MV_GIGE_SetResend(void* handle, unsigned int bEnable, unsigned int nMaxResendPercent, unsigned int nResendTimeout);
2660 #else
2661 MV_CAMCTRL_API int __stdcall MV_GIGE_SetResend(void* handle, unsigned int bEnable, unsigned int nMaxResendPercent = 10, unsigned int nResendTimeout = 50);
2662 #endif
2663 
2665 
2666 
2667 
2668 
2672 
2673 
2674 /********************************************************************/
2689 MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPSPacketSize(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2690 
2691 /********************************************************************/
2704 MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPSPacketSize(IN void* handle, IN const unsigned int nValue);
2705 
2706 /********************************************************************/
2721 MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPD(IN void* handle, IN OUT MVCC_INTVALUE* pstValue);
2722 
2723 /********************************************************************/
2736 MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPD(IN void* handle, IN const unsigned int nValue);
2737 
2738 /********************************************************************/
2753 MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCDA(IN void* handle, unsigned int* pnIP);
2754 
2755 /********************************************************************/
2770 MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCDA(IN void* handle, unsigned int nIP);
2771 
2772 /********************************************************************/
2787 MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCSP(IN void* handle, unsigned int* pnPort);
2788 
2789 /********************************************************************/
2804 MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCSP(IN void* handle, unsigned int nPort);
2806 
2807 
2808 
2812 
2813 /********************************************************************/
2838 MV_CAMCTRL_API int __stdcall MV_GIGE_SetTransmissionType(void* handle, MV_TRANSMISSION_TYPE * pstTransmissionType);
2839 
2840 /********************************************************************/
2855 MV_CAMCTRL_API int __stdcall MV_GIGE_IssueActionCommand(IN MV_ACTION_CMD_INFO* pstActionCmdInfo, OUT MV_ACTION_CMD_RESULT_LIST* pstActionCmdResults);
2856 
2858 
2859 
2860 
2861 
2862 /************************************************************************/
2863 /* XML解析树的生成 */
2864 /* XML parse tree generation */
2865 /************************************************************************/
2866 
2867 
2868 
2872 /********************************************************************/
2893 MV_CAMCTRL_API int __stdcall MV_XML_GetGenICamXML(IN void* handle, IN OUT unsigned char* pData, IN unsigned int nDataSize, OUT unsigned int* pnDataLen);
2894 
2895 /********************************************************************/
2909 MV_CAMCTRL_API int __stdcall MV_XML_GetRootNode(IN void* handle, IN OUT MV_XML_NODE_FEATURE* pstNode);
2910 
2911 /********************************************************************/
2927 MV_CAMCTRL_API int __stdcall MV_XML_GetChildren(IN void* handle, IN MV_XML_NODE_FEATURE* pstNode, IN OUT MV_XML_NODES_LIST* pstNodesList);
2928 
2929 
2930 /********************************************************************/
2948 MV_CAMCTRL_API int __stdcall MV_XML_GetNodeFeature(IN void* handle, IN MV_XML_NODE_FEATURE* pstNode, IN OUT void* pstFeature);
2949 
2950 /********************************************************************/
2966 MV_CAMCTRL_API int __stdcall MV_XML_UpdateNodeFeature(IN void* handle, IN enum MV_XML_InterfaceType enType, IN void* pstFeature);
2967 
2968 // 有节点需要更新时的回调函数
2969 // 当调用MV_XML_UpdateNodeFeature接口更新节点属性时,注册的回调函数cbUpdate会在pstNodesList中返回与之相关联的节点
2970 /********************************************************************/
2987  IN void(__stdcall* cbUpdate)(enum MV_XML_InterfaceType enType, void* pstFeature, MV_XML_NODES_LIST* pstNodesList, void* pUser),
2988  IN void* pUser);
2990 
2991 
2992 
2993 /************************************************************************/
2994 /* 附加接口 */
2995 /* Additional interface */
2996 /************************************************************************/
2997 
3001 
3002 /********************************************************************/
3021 MV_CAMCTRL_API int __stdcall MV_CC_SaveImageEx2(IN void* handle, MV_SAVE_IMAGE_PARAM_EX* pSaveParam);
3022 
3023 /********************************************************************/
3042 MV_CAMCTRL_API int __stdcall MV_CC_ConvertPixelType(IN void* handle, IN OUT MV_CC_PIXEL_CONVERT_PARAM* pstCvtParam);
3043 
3044 /********************************************************************/
3064 MV_CAMCTRL_API int __stdcall MV_CC_SetBayerCvtQuality(IN void* handle, IN unsigned int BayerCvtQuality);
3065 
3067 
3071 /********************************************************************/
3082 MV_CAMCTRL_API void* __stdcall MV_CC_GetTlProxy(IN void* handle);
3084 
3088 /********************************************************************/
3101 MV_CAMCTRL_API int __stdcall MV_CC_FeatureSave(IN void* handle, IN const char* pFileName);
3102 
3103 /********************************************************************/
3116 MV_CAMCTRL_API int __stdcall MV_CC_FeatureLoad(IN void* handle, IN const char* pFileName);
3117 
3118 /********************************************************************/
3131 MV_CAMCTRL_API int __stdcall MV_CC_FileAccessRead(IN void* handle, IN MV_CC_FILE_ACCESS * pstFileAccess);
3132 
3133 /********************************************************************/
3146 MV_CAMCTRL_API int __stdcall MV_CC_FileAccessWrite(IN void* handle, IN MV_CC_FILE_ACCESS * pstFileAccess);
3147 
3148 /********************************************************************/
3161 MV_CAMCTRL_API int __stdcall MV_CC_GetFileAccessProgress(IN void* handle, OUT MV_CC_FILE_ACCESS_PROGRESS * pstFileAccessProgress);
3162 
3164 
3168 
3169 /********************************************************************/
3182 MV_CAMCTRL_API int __stdcall MV_CC_StartRecord(IN void* handle, IN MV_CC_RECORD_PARAM* pstRecordParam);
3183 
3184 /********************************************************************/
3197 MV_CAMCTRL_API int __stdcall MV_CC_InputOneFrame(IN void* handle, IN MV_CC_INPUT_FRAME_INFO * pstInputFrameInfo);
3198 
3199 /********************************************************************/
3211 MV_CAMCTRL_API int __stdcall MV_CC_StopRecord(IN void* handle);
3213 
3217 /************************************************************************/
3218 /* 弃用的接口 */
3219 /* Abandoned interface */
3220 /************************************************************************/
3221 /********************************************************************/
3243 MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrame(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO* pFrameInfo);
3244 
3245 /********************************************************************/
3267 MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrameEx(IN void* handle, IN OUT unsigned char * pData , IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX* pFrameInfo);
3268 
3269 /********************************************************************/
3286  void(__stdcall* cbOutput)(unsigned char * pData, MV_FRAME_OUT_INFO* pFrameInfo, void* pUser),
3287  void* pUser);
3288 
3289 /********************************************************************/
3312 
3313 /********************************************************************/
3327 MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIp(IN void* handle, unsigned int nIP);
3328 
3329 /********************************************************************/
3346  void(__stdcall* cbEvent)(unsigned int nExternalEventId, void* pUser),
3347  void* pUser);
3348 
3349 /********************************************************************/
3366 
3367 
3371 /********************************************************************/
3380 MV_CAMCTRL_API int __stdcall MV_GIGE_SetResendMaxRetryTimes (void* handle, unsigned int nRetryTimes);
3381 
3382 /********************************************************************/
3391 MV_CAMCTRL_API int __stdcall MV_GIGE_GetResendMaxRetryTimes (void* handle, unsigned int* pnRetryTimes);
3392 
3393 /********************************************************************/
3402 MV_CAMCTRL_API int __stdcall MV_GIGE_GetResendTimeInterval (void* handle, unsigned int* pnMililsec);
3403 
3404 /********************************************************************/
3413 MV_CAMCTRL_API int __stdcall MV_GIGE_SetResendTimeInterval (void* handle, unsigned int nMililsec);
3414 
3415 /********************************************************************/
3424 MV_CAMCTRL_API int __stdcall MV_GIGE_SetGvspTimeout (void* handle, unsigned int nMililsec);
3425 
3426 /********************************************************************/
3435 MV_CAMCTRL_API int __stdcall MV_GIGE_GetGvspTimeout (void* handle, unsigned int* pnMililsec);
3437 
3438 #ifdef __cplusplus
3439 }
3440 #endif
3441 
3442 #endif //_MV_CAMERA_CTRL_H_
3443 
3444 
3445 
3446 
3447 
3448 
3449 
3450 
3451 
3452 
3453 
3454 
3455 
3456 
3457 
输出帧的信息
Definition: CameraParams.h:137
MV_CAMCTRL_API int __stdcall MV_CC_CreateHandleWithoutLog(OUT void **handle, IN const MV_CC_DEVICE_INFO *pstDevInfo)
创建设备句柄,不生成日志
MV_CAMCTRL_API int __stdcall MV_CC_StartRecord(IN void *handle, IN MV_CC_RECORD_PARAM *pstRecordParam)
开始录像
MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceWhiteAuto(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取自动白平衡
MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionMode(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取采集模式
单个节点基本属性
Definition: CameraParams.h:701
#define __stdcall
Definition: MvCameraControl.h:119
MV_CAMCTRL_API int __stdcall MV_CC_GetIntValueEx(IN void *handle, IN const char *strKey, OUT MVCC_INTVALUE_EX *pstIntValue)
获取Integer属性值
MV_CAMCTRL_API unsigned int __stdcall MV_CC_GetSDKVersion()
获取SDK版本号
MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioBlue(IN void *handle, IN const unsigned int nValue)
设置白平衡 蓝
Float类型值
Definition: CameraParams.h:960
MV_CAMCTRL_API int __stdcall MV_CC_GetIntValue(IN void *handle, IN const char *strKey, OUT MVCC_INTVALUE *pIntValue)
获取Integer属性值
包含编程需要的所有结构体、宏定义和枚举量
MV_CAMCTRL_API int __stdcall MV_CC_RegisterEventCallBack(void *handle, void(__stdcall *cbEvent)(unsigned int nExternalEventId, void *pUser), void *pUser)
注册事件回调(该接口已弃用,建议改用 MV_CC_RegisterEventCallBackEx() 接口)
MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackForBGR(void *handle, void(__stdcall *cbOutput)(unsigned char *pData, MV_FRAME_OUT_INFO_EX *pstFrameInfo, void *pUser), void *pUser)
注册图像数据回调,BGR
MV_CAMCTRL_API int __stdcall MV_GIGE_GetResendMaxRetryTimes(void *handle, unsigned int *pnRetryTimes)
获取重传命令最大重发次数
MV_CAMCTRL_API int __stdcall MV_CC_GetBoolValue(IN void *handle, IN const char *strKey, OUT bool *pbValue)
获取Boolean属性值
MV_CAMCTRL_API int __stdcall MV_GIGE_SetResendMaxRetryTimes(void *handle, unsigned int nRetryTimes)
设置重传命令最大重发次数
#define MV_CAMCTRL_API
Definition: MvCameraControl.h:125
MV_CAMCTRL_API int __stdcall MV_CC_GetGain(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取增益
MV_CAMCTRL_API int __stdcall MV_CC_SetExposureTime(IN void *handle, IN const float fValue)
设置曝光时间
MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioRed(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取白平衡 红
MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerSource(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取触发源
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCDA(IN void *handle, unsigned int *pnIP)
获取接收端IP地址,0xa9fe0102 表示 169.254.1.2
MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceAccessible(IN MV_CC_DEVICE_INFO *pstDevInfo, IN unsigned int nAccessMode)
设备是否可达
MV_CAMCTRL_API int __stdcall MV_CC_RegisterEventCallBackEx(void *handle, const char *strEventName, void(__stdcall *cbEvent)(MV_EVENT_OUT_INFO *pEventInfo, void *pUser), void *pUser)
注册单个事件回调,在打开设备之后调用
MV_CAMCTRL_API int __stdcall MV_CC_FeatureLoad(IN void *handle, IN const char *pFileName)
导入相机属性
图像转换结构体
Definition: CameraParams.h:280
MV_CAMCTRL_API int __stdcall MV_CC_GetFloatValue(IN void *handle, IN const char *strKey, OUT MVCC_FLOATVALUE *pstFloatValue)
获取Float属性值
节点列表
Definition: CameraParams.h:714
网络传输的相关信息
Definition: CameraParams.h:100
设备信息
Definition: CameraParams.h:78
MV_CAMCTRL_API int __stdcall MV_CC_EnumDevices(IN unsigned int nTLayerType, IN OUT MV_CC_DEVICE_INFO_LIST *pstDevList)
枚举设备
MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceWhiteAuto(IN void *handle, IN const unsigned int nValue)
设置自动白平衡
MV_CAMCTRL_API int __stdcall MV_CC_EnumerateTls()
获取支持的传输层
MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeLower(IN void *handle, IN const unsigned int nValue)
设置曝光值下限
MV_CAMCTRL_API int __stdcall MV_CC_SaveImageEx2(IN void *handle, MV_SAVE_IMAGE_PARAM_EX *pSaveParam)
保存图片,支持Bmp和Jpeg.编码质量在50-99之前
枚举类型值
Definition: CameraParams.h:928
MV_CAMCTRL_API int __stdcall MV_CC_GetSaturation(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取饱和度
MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceInfo(IN void *handle, IN OUT MV_CC_DEVICE_INFO *pstDevInfo)
获取设备信息,取流之前调用
MV_CAMCTRL_API int __stdcall MV_CC_SetEnumValue(IN void *handle, IN const char *strKey, IN unsigned int nValue)
设置Enum型属性值
MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackForRGB(void *handle, void(__stdcall *cbOutput)(unsigned char *pData, MV_FRAME_OUT_INFO_EX *pstFrameInfo, void *pUser), void *pUser)
注册图像数据回调,RGB
MV_CAMCTRL_API int __stdcall MV_CC_SetCommandValue(IN void *handle, IN const char *strKey)
设置Command型属性值
MV_CAMCTRL_API int __stdcall MV_CC_SetIntValueEx(IN void *handle, IN const char *strKey, IN int64_t nValue)
设置Integer型属性值
MV_CAMCTRL_API int __stdcall MV_GIGE_SetIpConfig(IN void *handle, unsigned int nType)
配置IP方式
MV_CAMCTRL_API int __stdcall MV_CC_SetFloatValue(IN void *handle, IN const char *strKey, IN float fValue)
设置float型属性值
MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionMode(IN void *handle, IN const unsigned int nValue)
设置像素格式
MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerDelay(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取触发延时
MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceConnected(IN void *handle)
判断设备是否处于连接状态
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCDA(IN void *handle, unsigned int nIP)
设置接收端IP地址
MV_CAMCTRL_API int __stdcall MV_CC_ReadMemory(IN void *handle, void *pBuffer, int64_t nAddress, int64_t nLength)
读内存
MV_CAMCTRL_API int __stdcall MV_CC_StartGrabbing(IN void *handle)
开始取流
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPD(IN void *handle, IN const unsigned int nValue)
设置网络包发送间隔
MV_CAMCTRL_API int __stdcall MV_CC_InvalidateNodes(IN void *handle)
清除GenICam节点缓存
图像基本信息结构体
Definition: CameraParams.h:505
MV_CAMCTRL_API int __stdcall MV_CC_SetSaturation(IN void *handle, IN const unsigned int nValue)
设置饱和度
显示帧信息
Definition: CameraParams.h:218
MV_CAMCTRL_API int __stdcall MV_CC_GetExposureAutoMode(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取自动曝光模式
设备信息列表
Definition: CameraParams.h:117
MV_CAMCTRL_API int __stdcall MV_CC_GetImageForRGB(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX *pstFrameInfo, int nMsec)
获取一帧RGB数据,此函数为查询式获取,每次调用查询内部 缓存有无数据,有数据则获取数据,无数据返回错误码
MV_CAMCTRL_API int __stdcall MV_CC_GetGamma(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取Gamma值
MV_CAMCTRL_API int __stdcall MV_CC_GetImageInfo(IN void *handle, IN OUT MV_IMAGE_BASIC_INFO *pstInfo)
获取图像基本信息
MV_CAMCTRL_API int __stdcall MV_XML_GetNodeFeature(IN void *handle, IN MV_XML_NODE_FEATURE *pstNode, IN OUT void *pstFeature)
获得当前节点的属性
MV_CAMCTRL_API int __stdcall MV_CC_SetStringValue(IN void *handle, IN const char *strKey, IN const char *strValue)
设置String型属性值
MV_CAMCTRL_API int __stdcall MV_GIGE_SetTransmissionType(void *handle, MV_TRANSMISSION_TYPE *pstTransmissionType)
设置传输模式,可以为单播模式、组播模式等
MV_CAMCTRL_API int __stdcall MV_CC_GetHue(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取灰度
传输模式,可以为单播模式、组播模式等
Definition: CameraParams.h:650
MV_CAMCTRL_API int __stdcall MV_CC_Display(IN void *handle, void *hWnd)
显示图像,注册显示窗口,内部自动显示(与 MV_CC_GetImageBuffer() 不能同时使用)
MV_CAMCTRL_API int __stdcall MV_CC_GetUpgradeProcess(IN void *handle, unsigned int *pnProcess)
获取升级进度
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGvspTimeout(void *handle, unsigned int *pnMililsec)
获取数据包重发超时
MV_CAMCTRL_API int __stdcall MV_CC_FileAccessWrite(IN void *handle, IN MV_CC_FILE_ACCESS *pstFileAccess)
将文件写入相机
MV_CAMCTRL_API int __stdcall MV_XML_RegisterUpdateCallBack(IN void *handle, IN void(__stdcall *cbUpdate)(enum MV_XML_InterfaceType enType, void *pstFeature, MV_XML_NODES_LIST *pstNodesList, void *pUser), IN void *pUser)
注册更新回调
MV_CAMCTRL_API int __stdcall MV_CC_SetEnumValueByString(IN void *handle, IN const char *strKey, IN const char *strValue)
设置Enum型属性值
MV_CAMCTRL_API int __stdcall MV_CC_GetFrameSpecInfoAbility(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取水印信息内包含的信息类型
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPSPacketSize(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取网络包大小
MV_CAMCTRL_API int __stdcall MV_CC_GetBurstFrameCount(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取一次触发的帧数
MV_CAMCTRL_API int __stdcall MV_GIGE_SetResendTimeInterval(void *handle, unsigned int nMililsec)
设置重传包命令重传时间间隔
MV_CAMCTRL_API int __stdcall MV_GIGE_GetNetTransInfo(IN void *handle, MV_NETTRANS_INFO *pstInfo)
获取网络传输信息
MV_CAMCTRL_API int __stdcall MV_CC_GetFrameRate(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取帧率
MV_CAMCTRL_API void *__stdcall MV_CC_GetTlProxy(IN void *handle)
获取GenICam代理
MV_CAMCTRL_API int __stdcall MV_GIGE_GetResendTimeInterval(void *handle, unsigned int *pnMililsec)
获取重传包命令重传时间间隔
MV_CAMCTRL_API int __stdcall MV_CC_SetBoolValue(IN void *handle, IN const char *strKey, IN bool bValue)
设置Boolean型属性值
MV_CAMCTRL_API int __stdcall MV_CC_GetHeartBeatTimeout(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取心跳信息
MV_CAMCTRL_API int __stdcall MV_GIGE_IssueActionCommand(IN MV_ACTION_CMD_INFO *pstActionCmdInfo, OUT MV_ACTION_CMD_RESULT_LIST *pstActionCmdResults)
发出动作命令
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGvspTimeout(void *handle, unsigned int nMililsec)
设置数据包重发超时
MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeUpper(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取曝光上限
MV_CAMCTRL_API int __stdcall MV_CC_SetBayerCvtQuality(IN void *handle, IN unsigned int BayerCvtQuality)
插值算法类型设置
MV_CAMCTRL_API int __stdcall MV_CC_SaveImage(IN OUT MV_SAVE_IMAGE_PARAM *pSaveParam)
保存图片(该接口已弃用,建议改用 MV_CC_SaveImageEx() 接口)
MV_CAMCTRL_API int __stdcall MV_CC_SetGainMode(IN void *handle, IN const unsigned int nValue)
设置增益模式
MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBack(void *handle, void(__stdcall *cbOutput)(unsigned char *pData, MV_FRAME_OUT_INFO *pFrameInfo, void *pUser), void *pUser)
注册图像数据回调(该接口已弃用,建议改用 MV_CC_RegisterImageCallBackEx() 接口)
MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIpEx(IN void *handle, unsigned int nIP, unsigned int nSubNetMask, unsigned int nDefaultGateWay)
强制IP
MV_CAMCTRL_API int __stdcall MV_CC_TriggerSoftwareExecute(IN void *handle)
软触发一次(接口仅在已选择的触发源为软件触发时有效)
输出帧的信息
Definition: CameraParams.h:156
MV_CAMCTRL_API int __stdcall MV_CC_DestroyHandle(IN void *handle)
销毁设备句柄
MV_CAMCTRL_API int __stdcall MV_CC_SetBurstFrameCount(IN void *handle, IN const unsigned int nValue)
设置一次触发的帧数
MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioBlue(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取白平衡 蓝
MV_CAMCTRL_API int __stdcall MV_CC_GetWidth(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取图像宽度
MV_CAMCTRL_API int __stdcall MV_CC_SetPixelFormat(IN void *handle, IN const unsigned int nValue)
设置像素格式
MV_CAMCTRL_API int __stdcall MV_CC_SetBrightness(IN void *handle, IN const unsigned int nValue)
设置亮度值
图片保存参数
Definition: CameraParams.h:257
显示事件信息
Definition: CameraParams.h:610
MV_CAMCTRL_API int __stdcall MV_CC_GetGammaSelector(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取Gamma类型
MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerSource(IN void *handle, IN const unsigned int nValue)
设置触发源
MV_CAMCTRL_API int __stdcall MV_XML_UpdateNodeFeature(IN void *handle, IN enum MV_XML_InterfaceType enType, IN void *pstFeature)
更新节点
MV_CAMCTRL_API int __stdcall MV_CC_SetExposureAutoMode(IN void *handle, IN const unsigned int nValue)
设置自动曝光模式
MV_CAMCTRL_API int __stdcall MV_CC_RegisterExceptionCallBack(IN void *handle, void(__stdcall *cbException)(unsigned int nMsgType, void *pUser), void *pUser)
注册异常消息回调,在打开设备之后调用
MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackEx(void *handle, void(__stdcall *cbOutput)(unsigned char *pData, MV_FRAME_OUT_INFO_EX *pstFrameInfo, void *pUser), void *pUser)
注册图像数据回调
MV_CAMCTRL_API int __stdcall MV_CC_EnumDevicesEx(IN unsigned int nTLayerType, IN OUT MV_CC_DEVICE_INFO_LIST *pstDevList, IN const char *strManufacturerName)
根据厂商名字枚举设备
MV_CAMCTRL_API int __stdcall MV_CC_GetSharpness(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取锐度
动作命令返回信息列表
Definition: CameraParams.h:693
MV_CAMCTRL_API int __stdcall MV_CC_SetSDKLogPath(IN const char *strSDKLogPath)
设置SDK日志路径
MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceUserID(IN void *handle, IN OUT MVCC_STRINGVALUE *pstValue)
获取设备自定义名字
MV_CAMCTRL_API int __stdcall MV_CC_SetFrameRate(IN void *handle, IN const float fValue)
设置帧率
MV_CAMCTRL_API int __stdcall MV_CC_FeatureSave(IN void *handle, IN const char *pFileName)
保存相机属性
MV_CAMCTRL_API int __stdcall MV_CC_RegisterAllEventCallBack(void *handle, void(__stdcall *cbEvent)(MV_EVENT_OUT_INFO *pEventInfo, void *pUser), void *pUser)
注册全部事件回调,在打开设备之后调用
MV_CAMCTRL_API int __stdcall MV_CC_GetAllMatchInfo(IN void *handle, IN OUT MV_ALL_MATCH_INFO *pstInfo)
获取各种类型的信息
MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrame(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO *pFrameInfo)
获取一帧图像,此函数为查询式获取,每次调用查询内部缓存有 无数据,有数据则范围数据,无数据返回错误码 (该接口已弃用,建议改用 MV_CC_GetOneFrameTimeOut() 接口)
文件存取进度
Definition: CameraParams.h:639
MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrameEx(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX *pFrameInfo)
获取一帧trunck数据,此函数为查询式获取,每次调用查询内部 缓存有无数据,有数据则范围数据,无数据返回错误码 (该接口已弃用,建议改用 MV_CC_GetOneFrameTimeOut() 接口)
MV_CAMCTRL_API int __stdcall MV_CC_SetHue(IN void *handle, IN const unsigned int nValue)
设置灰度
MV_CAMCTRL_API int __stdcall MV_CC_SetFrameSpecInfoAbility(IN void *handle, IN const unsigned int nValue)
设置水印信息内包含的信息类型
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCSP(IN void *handle, unsigned int *pnPort)
获取发送端的端口号
MV_CAMCTRL_API int __stdcall MV_CC_GetFileAccessProgress(IN void *handle, OUT MV_CC_FILE_ACCESS_PROGRESS *pstFileAccessProgress)
获取文件存取的进度
MV_CAMCTRL_API int __stdcall MV_XML_GetRootNode(IN void *handle, IN OUT MV_XML_NODE_FEATURE *pstNode)
获取根节点
MV_CAMCTRL_API int __stdcall MV_CC_GetGainMode(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取增益模式
MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIp(IN void *handle, unsigned int nIP)
强制IP(该接口已弃用,建议改用 MV_GIGE_ForceIpEx() 接口)
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCSP(IN void *handle, unsigned int nPort)
设置发送端的端口号
MV_CAMCTRL_API int __stdcall MV_GIGE_SetNetTransMode(IN void *handle, unsigned int nType)
设置仅使用某种模式,type: MV_NET_TRANS_x,不设置时,默认优先使用driver
MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeUpper(IN void *handle, IN const unsigned int nValue)
设置曝光值上限
文件存取
Definition: CameraParams.h:630
MV_CAMCTRL_API int __stdcall MV_CC_FileAccessRead(IN void *handle, IN MV_CC_FILE_ACCESS *pstFileAccess)
从相机读取文件
MV_CAMCTRL_API int __stdcall MV_CC_WriteMemory(IN void *handle, const void *pBuffer, int64_t nAddress, int64_t nLength)
写内存
MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void *handle, IN const unsigned int nValue)
设置图像AOI偏移
MV_CAMCTRL_API int __stdcall MV_CC_SetHeight(IN void *handle, IN const unsigned int nValue)
设置图像高度
MV_XML_InterfaceType
每个节点对应的接口类型
Definition: CameraParams.h:565
MV_CAMCTRL_API int __stdcall MV_CC_StopRecord(IN void *handle)
停止录像
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPSPacketSize(IN void *handle, IN const unsigned int nValue)
设置网络包大小
MV_CAMCTRL_API int __stdcall MV_CC_GetHeight(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取图像高度
MV_CAMCTRL_API int __stdcall MV_CC_ConvertPixelType(IN void *handle, IN OUT MV_CC_PIXEL_CONVERT_PARAM *pstCvtParam)
像素格式转换
MV_CAMCTRL_API int __stdcall MV_CC_GetImageBuffer(IN void *handle, OUT MV_FRAME_OUT *pstFrame, IN unsigned int nMsec)
使用内部缓存获取一帧图片(与 MV_CC_Display() 不能同时使用)
MV_CAMCTRL_API int __stdcall MV_CC_SetGammaSelector(IN void *handle, IN const unsigned int nValue)
设置Gamma类型
MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetY(IN void *handle, IN const unsigned int nValue)
设置图像AOI偏移
MV_CAMCTRL_API int __stdcall MV_CC_SetWidth(IN void *handle, IN const unsigned int nValue)
设置图像宽度
MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerMode(IN void *handle, IN const unsigned int nValue)
设置触发模式
MV_CAMCTRL_API int __stdcall MV_CC_InputOneFrame(IN void *handle, IN MV_CC_INPUT_FRAME_INFO *pstInputFrameInfo)
输入录像数据
Int类型值
Definition: CameraParams.h:938
MV_CAMCTRL_API int __stdcall MV_CC_SetSharpness(IN void *handle, IN const unsigned int nValue)
设置锐度
MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioGreen(IN void *handle, IN const unsigned int nValue)
设置白平衡 绿
录像参数
Definition: CameraParams.h:306
MV_CAMCTRL_API int __stdcall MV_CC_SetGamma(IN void *handle, IN const float fValue)
设置Gamma值
MV_CAMCTRL_API int __stdcall MV_CC_GetEnumValue(IN void *handle, IN const char *strKey, OUT MVCC_ENUMVALUE *pstEnumValue)
获取Enum属性值
MV_CAMCTRL_API int __stdcall MV_CC_CreateHandle(OUT void **handle, IN const MV_CC_DEVICE_INFO *pstDevInfo)
创建设备句柄
MV_CAMCTRL_API int __stdcall MV_CC_CloseDevice(IN void *handle)
关闭设备
MV_CAMCTRL_API int __stdcall MV_CC_SetImageNodeNum(IN void *handle, unsigned int nNum)
设置SDK内部图像缓存节点个数,大于等于1,在抓图前调用
MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerMode(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取触发模式
String类型值
Definition: CameraParams.h:970
MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionLineRate(IN void *handle, IN const unsigned int nValue)
设置行频
MV_CAMCTRL_API int __stdcall MV_CC_GetImageForBGR(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX *pstFrameInfo, int nMsec)
获取一帧BGR数据,此函数为查询式获取,每次调用查询内部 缓存有无数据,有数据则获取数据,无数据返回错误码
MV_CAMCTRL_API int __stdcall MV_CC_SetDeviceUserID(IN void *handle, IN const char *chValue)
设置设备自定义名字
MV_CAMCTRL_API int __stdcall MV_CC_GetBrightness(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取亮度值
MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetX(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取图像X偏移
MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioGreen(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取白平衡 绿
MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetY(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取图像Y偏移
MV_CAMCTRL_API int __stdcall MV_CC_GetPixelFormat(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取像素格式
MV_CAMCTRL_API int __stdcall MV_XML_GetGenICamXML(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, OUT unsigned int *pnDataLen)
获取相机属性树XML
MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrameTimeout(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX *pstFrameInfo, unsigned int nMsec)
采用超时机制获取一帧图片,SDK内部等待直到有数据时返回
MV_CAMCTRL_API int __stdcall MV_CC_StopGrabbing(IN void *handle)
停止取流
MV_CAMCTRL_API int __stdcall MV_GIGE_SetResend(void *handle, unsigned int bEnable, unsigned int nMaxResendPercent, unsigned int nResendTimeout)
设置是否打开重发包支持,及重发包设置
MV_CAMCTRL_API int __stdcall MV_CC_SetGain(IN void *handle, IN const float fValue)
设置帧率
MV_CAMCTRL_API int __stdcall MV_CC_SetIntValue(IN void *handle, IN const char *strKey, IN unsigned int nValue)
设置Integer型属性值
MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioRed(IN void *handle, IN const unsigned int nValue)
设置白平衡 红
MV_CAMCTRL_API int __stdcall MV_CC_GetExposureTime(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取曝光时间
图片保存参数
Definition: CameraParams.h:241
MV_CAMCTRL_API int __stdcall MV_CC_SetHeartBeatTimeout(IN void *handle, IN const unsigned int nValue)
设置心跳信息
MV_CAMCTRL_API int __stdcall MV_CC_GetStringValue(IN void *handle, IN const char *strKey, OUT MVCC_STRINGVALUE *pstStringValue)
获取String属性值
MV_CAMCTRL_API int __stdcall MV_XML_GetChildren(IN void *handle, IN MV_XML_NODE_FEATURE *pstNode, IN OUT MV_XML_NODES_LIST *pstNodesList)
从xml中获取指定节点的所有子节点,根节点为Root
MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionLineRate(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取行频
录像数据
Definition: CameraParams.h:325
MV_CAMCTRL_API int __stdcall MV_CC_FreeImageBuffer(IN void *handle, IN MV_FRAME_OUT *pstFrame)
释放图像缓存(此接口用于释放不再使用的图像缓存,与 MV_CC_GetImageBuffer() 配套使用)
MV_CAMCTRL_API int __stdcall MV_CC_GetOptimalPacketSize(IN void *handle)
获取最佳的packet size,该接口目前只支持GigE相机
Int类型值Ex
Definition: CameraParams.h:949
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPD(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取网络包发送间隔
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGvcpTimeout(void *handle, unsigned int nMillisec)
设置GVCP命令超时时间
MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrame(IN void *handle, IN MV_DISPLAY_FRAME_INFO *pstDisplayInfo)
显示一帧图像
MV_CAMCTRL_API int __stdcall MV_CC_OpenDevice(IN void *handle, IN unsigned int nAccessMode, IN unsigned short nSwitchoverKey)
打开设备
MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerDelay(IN void *handle, IN const float fValue)
设置触发延时
图像结构体,输出图像指针地址及图像信息
Definition: CameraParams.h:209
MV_CAMCTRL_API int __stdcall MV_CC_LocalUpgrade(IN void *handle, const void *strFilePathName)
设备本地升级
动作命令信息
Definition: CameraParams.h:660
全匹配的一种信息结构体
Definition: CameraParams.h:474
MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeLower(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取曝光下限
MV_CAMCTRL_API int __stdcall MV_CC_SaveImageEx(IN OUT MV_SAVE_IMAGE_PARAM_EX *pSaveParam)
保存图片,支持Bmp和Jpeg.编码质量在50-99之前 (该接口已弃用,建议改用 MV_CC_SaveImageEx2() 接口)